module.exports = {
    // 微信API配置
    WECHAT_API: {
        BASE_URL: 'https://api.weixin.qq.com/cgi-bin',
        ENDPOINTS: {
            TOKEN: '/token',
            MESSAGE_SEND: '/message/custom/send',
            OAUTH: '/oauth2/authorize'
        },
        TOKEN_EXPIRE_BUFFER: 300 // 5分钟缓冲时间
    },

    // 重试策略
    RETRY_POLICY: {
        DEFAULT_RETRIES: 3,
        DELAY_MS: 1000,
        RETRYABLE_ERRORS: [
            'ETIMEDOUT',
            'ECONNRESET',
            'ESOCKETTIMEDOUT'
        ]
    },

    // 推送设置
    PUSH_SETTINGS: {
        DEFAULT_TEMPLATE: 'standard',
        MAX_PUSH_ATTEMPTS: 3
    },

    PUSH_TYPES: {
        SCHEDULED: 'scheduled', // 定时推送
        INSTANT: 'instant',     // 即时推送
        RETRY: 'retry'          // 重试推送
      }
};